Adwaita: allow suggested and destructive action buttons in lists
authorJakub Steiner <jimmac@gmail.com>
Wed, 3 Feb 2021 22:13:24 +0000 (23:13 +0100)
committerJakub Steiner <jimmac@gmail.com>
Wed, 3 Feb 2021 22:15:30 +0000 (23:15 +0100)
Fixes https://gitlab.gnome.org/GNOME/gtk/-/issues/3643

gtk/theme/Adwaita/_common.scss

index 77790d75289f72513703bcb8d29e90316a5f0eb4..5588e4fb40aae8e7219bd5298f809462201e66a9 100644 (file)
@@ -933,6 +933,14 @@ list > row button.image-button:not(.flat) {
   &:hover { @include button(hover); }
   &:active,
   &:checked { @include button(active); }
+
+  @each $b_type, $b_color in (suggested-action, $selected_bg_color),
+                         (destructive-action, $destructive_color) {
+    &.#{$b_type} { // allow colored buttons in lists #3643
+      @include button(normal, $b_color, white);
+      @include focus-ring($fc: $alt_focus_border_color);
+    }
+  }
 }
 
 /*********